﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace PLCDEMO.test
{
    class testClass
    {
        public delegate void refeshIO();
        public refeshIO re_main;

        public void mainRefresh()
        {
            while(true)
            {
                //调用委托对象
                re_main();
                //当前线程挂起一段时间
                Thread.Sleep(200);
            }
        }
    }
}
